﻿using AutoMapper;
using B.S.RbacData.Domain;
using B.S.RbacData.Domain.Traceabilitys;
using B.S.RbacData.Read.API.Dtos;
using B.S.RbacData.Read.API.Dtos.Traceabilitys;

namespace B.S.RbacData.Read.API
{
    public class AutoMapperProFiles:Profile
    {
        public AutoMapperProFiles()
        {
            CreateMap<PermissionModel, GetAllPermissionDtos>();
            CreateMap<RoleModel, RolePermissionDtos>();
            CreateMap<UserModel, UserRoleDtos>();
            CreateMap<RoleModel, GetAllRoleDtos>();
            CreateMap<PermissionModel, MenuPermissionDtos>();
            CreateMap<ProductModel, GetProductDtos>();
            CreateMap<GoodsModel, GetAllGoodsDtos>();
            CreateMap<ProductModel, GetEnditDtos>();
        }
    }
}
